<template>
  <div class="mr-2">
    <el-button v-if="toolBarButtonText" type="primary" @click="$emit('add')">
      {{ toolBarButtonText }}
    </el-button>
  </div>
</template>

<script setup lang="ts">
defineProps({
  toolBarButtonText: {
    type: String,
    default: '',
  },
});
defineEmits<{
  (e: 'add'): void;
}>();
</script>
